package us.gaaoc.framework.webapp.backingbeans.agent.reports;

import javax.faces.context.FacesContext;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.transaction.annotation.Transactional;


import us.gaaoc.framework.webapp.backingbeans.BaseBackingBean;

public class FilingStatistics extends BaseBackingBean {
	private int numberOfFirstFilingDates;
	private int numberOfProcessedFiling;

	public int getNumberOfFirstFilingDates() {
		numberOfFirstFilingDates = this.getModelFacade().countFilings(
				(String) FacesContext.getCurrentInstance().getExternalContext()
						.getSessionMap().get("courtUuid"));
		//System.out.println("NumberOfFirstFilingDates="+numberOfFirstFilingDates
		// );
		return numberOfFirstFilingDates;
	}

	public void setNumberOfFirstFilingDates(int numberOfFirstFilingDates) {
		this.numberOfFirstFilingDates = numberOfFirstFilingDates;
	}

	public int getNumberOfProcessedFiling() {
		numberOfProcessedFiling = this.getModelFacade().countProcessedFiling(
				(String) FacesContext.getCurrentInstance().getExternalContext()
						.getSessionMap().get("courtUuid"));
		//System.out.println("NumberOfProcessedFiling="+numberOfProcessedFiling)
		// ;
		return numberOfProcessedFiling;
	}

	public void setNumberOfProcessedFiling(int numberOfProcessedFiling) {
		this.numberOfProcessedFiling = numberOfProcessedFiling;
	}

	public String back() {
		return "back";
	}
}